//
//  LXVideo.m
//  cat
//
//  Created by imera on 16/2/29.
//  Copyright © 2016年 LX. All rights reserved.
//

#import "LXVideo.h"

@implementation LXVideo

+ (instancetype)initWithDict:(NSDictionary *)dict
{
    return [[self alloc]initWithDict:dict];
}

- (instancetype)initWithDict:(NSDictionary *)dict
{
    self.fname = dict[@"fname"];
    self.ID = [dict[@"id"] integerValue];
    self.fid = dict[@"fid"];
    self.parentid = dict[@"parentid"];
    self.keywords = dict[@"keywords"];
    self._description = dict[@"description"];
    NSString *bigpic = [NSString stringWithFormat:@"%s%@",LXWebRoot,dict[@"bigpic"]];
    self.bigpic = bigpic;
    NSString *thumb = [NSString stringWithFormat:@"%s%@",LXWebRoot,dict[@"thumb"]];
    self.thumb = thumb;
    self.videourl = dict[@"videourl"];
    self.uptime = dict[@"uptime"];
    self.videoauthor = [dict[@"videoauthor"] integerValue];
    self.videocomments = [dict[@"videocomments"] integerValue];
    self.videodanmu = [dict[@"videodanmu"] integerValue];
    self.videotime = [dict[@"videotime"] integerValue];
    self.viewcounts = [dict[@"viewcounts"] integerValue];
    self.uid = [dict[@"uid"] integerValue];
    self.sword = [dict[@"sword"] integerValue];
    self.catfood = [dict[@"catfood"] integerValue];
    self.mark = [dict[@"mark"] integerValue];
    self.videolevel = [dict[@"videolevel"] integerValue];
    return [self init];
}

@end
